﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;

namespace Admin.NET.Application;

    /// <summary>
    /// 优惠券基础输入参数
    /// </summary>
    public class KerryplususercouponBaseInput
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public virtual string? UserId { get; set; }
        
        /// <summary>
        /// 手机号
        /// </summary>
        public virtual string? PhoneNumber { get; set; }
        
        /// <summary>
        /// 优惠券ID
        /// </summary>
        public virtual string? CouponId { get; set; }
        
        /// <summary>
        /// 优惠券名称
        /// </summary>
        public virtual string? CouponName { get; set; }
        
        /// <summary>
        /// 优惠券Code
        /// </summary>
        public virtual string? CouponCode { get; set; }
        
        /// <summary>
        /// 优惠券状态
        /// </summary>
        public virtual string? CouponState { get; set; }
        
        /// <summary>
        /// 生效日期
        /// </summary>
        public virtual DateTime ExchangeDate { get; set; }
        
        /// <summary>
        /// 分类
        /// </summary>
        public virtual int Category { get; set; }
        
        /// <summary>
        /// 优惠券类型
        /// </summary>
        public virtual string? CouponType { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime CreateDate { get; set; }
        
        /// <summary>
        /// 有效期开始
        /// </summary>
        public virtual DateTime ExchangeStartDate { get; set; }
        
        /// <summary>
        /// 有效期结束
        /// </summary>
        public virtual DateTime ExchangeEndDate { get; set; }
        
        /// <summary>
        /// 租户Id
        /// </summary>
        public virtual long? TenantId { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime? CreateTime { get; set; }
        
        /// <summary>
        /// 更新时间
        /// </summary>
        public virtual DateTime? UpdateTime { get; set; }
        
        /// <summary>
        /// 创建者Id
        /// </summary>
        public virtual long? CreateUserId { get; set; }
        
        /// <summary>
        /// 创建者姓名
        /// </summary>
        public virtual string? CreateUserName { get; set; }
        
        /// <summary>
        /// 修改者Id
        /// </summary>
        public virtual long? UpdateUserId { get; set; }
        
        /// <summary>
        /// 修改者姓名
        /// </summary>
        public virtual string? UpdateUserName { get; set; }
        
        /// <summary>
        /// 软删除
        /// </summary>
        public virtual bool IsDelete { get; set; }
        
    }

    /// <summary>
    /// 优惠券分页查询输入参数
    /// </summary>
    public class PageKerryplususercouponInput : BasePageInput
    {
        /// <summary>
        /// 关键字查询
        /// </summary>
        public string? SearchKey { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public string? UserId { get; set; }
        
        /// <summary>
        /// 手机号
        /// </summary>
        public string? PhoneNumber { get; set; }
        
        /// <summary>
        /// 优惠券ID
        /// </summary>
        public string? CouponId { get; set; }
        
        /// <summary>
        /// 优惠券名称
        /// </summary>
        public string? CouponName { get; set; }
        
        /// <summary>
        /// 优惠券Code
        /// </summary>
        public string? CouponCode { get; set; }
        
        /// <summary>
        /// 优惠券状态
        /// </summary>
        public string? CouponState { get; set; }
        
        /// <summary>
        /// 生效日期
        /// </summary>
        public DateTime? ExchangeDate { get; set; }
        
        /// <summary>
         /// 生效日期范围
         /// </summary>
         public DateTime?[] ExchangeDateRange { get; set; } 
        /// <summary>
        /// 分类
        /// </summary>
        public int? Category { get; set; }
        
        /// <summary>
        /// 优惠券类型
        /// </summary>
        public string? CouponType { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        
        /// <summary>
         /// 创建时间范围
         /// </summary>
         public DateTime?[] CreateDateRange { get; set; } 
        /// <summary>
        /// 有效期开始
        /// </summary>
        public DateTime? ExchangeStartDate { get; set; }
        
        /// <summary>
         /// 有效期开始范围
         /// </summary>
         public DateTime?[] ExchangeStartDateRange { get; set; } 
        /// <summary>
        /// 有效期结束
        /// </summary>
        public DateTime? ExchangeEndDate { get; set; }
        
        /// <summary>
         /// 有效期结束范围
         /// </summary>
         public DateTime?[] ExchangeEndDateRange { get; set; } 
    }

    /// <summary>
    /// 优惠券增加输入参数
    /// </summary>
    public class AddKerryplususercouponInput : KerryplususercouponBaseInput
    {
        /// <summary>
        /// 生效日期
        /// </summary>
        [Required(ErrorMessage = "生效日期不能为空")]
        public override DateTime ExchangeDate { get; set; }
        
        /// <summary>
        /// 分类
        /// </summary>
        [Required(ErrorMessage = "分类不能为空")]
        public override int Category { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        [Required(ErrorMessage = "创建时间不能为空")]
        public override DateTime CreateDate { get; set; }
        
        /// <summary>
        /// 有效期开始
        /// </summary>
        [Required(ErrorMessage = "有效期开始不能为空")]
        public override DateTime ExchangeStartDate { get; set; }
        
        /// <summary>
        /// 有效期结束
        /// </summary>
        [Required(ErrorMessage = "有效期结束不能为空")]
        public override DateTime ExchangeEndDate { get; set; }
        
        /// <summary>
        /// 软删除
        /// </summary>
        [Required(ErrorMessage = "软删除不能为空")]
        public override bool IsDelete { get; set; }
        
    }

    /// <summary>
    /// 优惠券删除输入参数
    /// </summary>
    public class DeleteKerryplususercouponInput : BaseIdInput
    {
    }

    /// <summary>
    /// 优惠券更新输入参数
    /// </summary>
    public class UpdateKerryplususercouponInput : KerryplususercouponBaseInput
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        [Required(ErrorMessage = "主键Id不能为空")]
        public long Id { get; set; }
        
    }

    /// <summary>
    /// 优惠券主键查询输入参数
    /// </summary>
    public class QueryByIdKerryplususercouponInput : DeleteKerryplususercouponInput
    {

    }
